#encoding='gbk'


import unittest
import math
import ddt
import HTMLTestRunner


class Calc(object):
    def add(self,x,y,*d):
        result=x+y
        for i in d:
            result+=i
        return result
    def sub(self,x,y,*d):
        result= x-y
        for i in d:
            result-=i
        return result

class SuiteTestCalc(unittest.TestCase):
    def setUp(self):
        self.c= Calc()
    @unittest.skip('skipping')
    def test_Sub(self):
        self.assertEqual(self.c.sub(100,34,6),61,'求差结果错误')
    def test_Add(self):
        self.assertEqual(self.c.add(1,32,56),89,'求和结果错误')
        pass


@ddt.ddt
class SuiteTestPow(unittest.TestCase):
    def setUp(self):
        self.seq= list(range(10))
    def test_Pow(self):
        pass
    def test_hasattr(self):
        pass



if __name__=='__main__':
    unittest.main()